package com.ruoyi.order.domain.vo;

import java.math.BigDecimal;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;



/**
 * 订单视图对象 t_order
 *
 * @author ruoyi
 * @date 2022-08-29
 */
@Data
@ExcelIgnoreUnannotated
public class TOrderVo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private String id;

    /**
     * 订单号
     */
    @ExcelProperty(value = "订单号")
    private String orderNo;

    /**
     * 课程id
     */
    @ExcelProperty(value = "课程id")
    private String courseId;

    /**
     * 课程名称
     */
    @ExcelProperty(value = "课程名称")
    private String courseTitle;

    /**
     * 课程封面
     */
    @ExcelProperty(value = "课程封面")
    private String courseCover;

    /**
     * 讲师名称
     */
    @ExcelProperty(value = "讲师名称")
    private String teacherName;

    /**
     * 会员id
     */
    @ExcelProperty(value = "会员id")
    private String memberId;

    /**
     * 会员昵称
     */
    @ExcelProperty(value = "会员昵称")
    private String nickname;

    /**
     * 会员手机
     */
    @ExcelProperty(value = "会员手机")
    private String mobile;

    /**
     * 订单金额（分）
     */
    @ExcelProperty(value = "订单金额", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "分=")
    private BigDecimal totalFee;

    /**
     * 支付类型（1：微信 2：支付宝）
     */
    @ExcelProperty(value = "支付类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=：微信,2=：支付宝")
    private Long payType;

    /**
     * 订单状态（0：未支付 1：已支付）
     */
    @ExcelProperty(value = "订单状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "pay_status")
    private Long status;


}
